#ifndef FPLAYER_RTSPCAPTURE_H
#define FPLAYER_RTSPCAPTURE_H

#include "FFMpegCapture.h"

/**
 * author: x-fan
 * date: 2024/1/15
 * desc: FFMpeg之RTSP解复用
 */
class RTSPCapture: public FFMpegCapture {
protected:
  int32_t openInput(AVFormatContext **ppFormatCtx, IPCameraDevice *pDevice) override;

  void closeInput(AVFormatContext **ppFormatCtx) override;

public:
  using FFMpegCapture::FFMpegCapture;

  virtual ~RTSPCapture() = default;

  const char *getClassName() override;
};


#endif //FPLAYER_RTSPCAPTURE_H
